<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="<?=Q::ini('custom_system/base_url')?>css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h3><?=$other_io['number']?></h3>
<table class="form_table">
<tr>
	<th>经办人：</th>
	<td><?=$other_io['user_name']?></td>
</tr>
<tr>
	<th>备注：</th>
	<td colspan="3"><textarea disabled="disabled" cols="60" rows="3"><?=$other_io['notes']?></textarea></td>
</tr>
</table>
<table width="80%" class="list_table">
<tr>
	<th>产品信息</th>
	<th>成本价</th>
	<th>数量</th>
	<th>总价</th>
</tr>
<?$quantity=$actual=0;?>
<?foreach ($item as $i):?>
<?$quantity += $i['quantity'];?>
<?$actual += $i['quantity']*$i['cost_price'];?>
<tr>
	<td><?=$i['number']?> <?=$i['name']?></td>
	<td><?=$i['cost_price']?></td>
	<td><?=$i['quantity']?></td>
	<td><?=$i['quantity']*$i['cost_price']?></td>
</tr>
<?endforeach;?>
<tr>
	<td colspan="2" align="right">合计：</td>
	<td><?=$quantity?></td>
	<td><?=$actual?></td>
</tr>
</table>
</body>
</html>